/**
 * Created by guomin on 2017/4/27.
 */
var mysql=require('promise-mysql');
var db=require('./db');

var _pool=null;
var NND={
    init:function(){
        if(!_pool){
            _pool=mysql.createPool(db.mysql);
        }
        return _pool;
    }
};

module.exports=NND;